
import { Injectable } from '@angular/core';
import { FormControl } from '@angular/forms';
import { Form, NgFormControl, NgChildForm, NgChildFormArray, NgValidateForm } from '@farris/devkit';
import { DateConverter, MultiLangConverter } from '@farris/kendo-binding';

@Injectable()
@NgValidateForm({
    formGroupName: '加盟推广',
    enableValidate: true
})

@Injectable()
export class DetailFormComponentViewmodelForm extends Form {
    @NgFormControl({
        id: 'jmhdbh_90eff549_ehbd',
        name: "{{jmhdbh_90eff549_ehbd}}",
        binding: 'jmhdbh',
        updateOn: 'blur',
        defaultI18nValue: '活动编号',
        validRules: [
            {
                type: 'required',
                constraints: [true],
            },
            {
                type: 'matches',
                constraints: [''],
            }
        ]
    })
    jmhdbh: FormControl;

    @NgFormControl({
        id: 'jmhdmc_4df6c9d3_zg16',
        name: "{{jmhdmc_4df6c9d3_zg16}}",
        binding: 'jmhdmc',
        updateOn: 'blur',
        defaultI18nValue: '活动名称',
        validRules: [
            {
                type: 'required',
                constraints: [true],
            },
            {
                type: 'matches',
                constraints: [''],
            }
        ]
    })
    jmhdmc: FormControl;

    @NgFormControl({
        id: 'jmhdrq_2996d4bf_4wuy',
        name: "{{jmhdrq_2996d4bf_4wuy}}",
        binding: 'jmhdrq',
        updateOn: 'blur',
        valueConverter: new DateConverter('yyyy-MM-dd'),
        defaultI18nValue: '活动日期',
        validRules: [
            {
                type: 'required',
                constraints: [true],
            }
        ]
    })
    jmhdrq: FormControl;

    @NgFormControl({
        id: 'jmhdlx_a00f63b7_yduu',
        name: "{{jmhdlx_a00f63b7_yduu}}",
        binding: 'jmhdlx',
        updateOn: 'blur',
        defaultI18nValue: '活动类型',
        validRules: [
            {
                type: 'required',
                constraints: [true],
            }
        ]
    })
    jmhdlx: FormControl;

    @NgFormControl({
        id: 'bz_10112502_16r1',
        name: "{{bz_10112502_16r1}}",
        binding: 'bz',
        updateOn: 'blur',
        defaultI18nValue: '备注',
    })
    bz: FormControl;

    @NgFormControl({
        id: 'hdys_b38409ed_gk6v',
        name: "{{hdys_b38409ed_gk6v}}",
        binding: 'hdys',
        updateOn: 'blur',
        defaultI18nValue: '活动预算',
    })
    hdys: FormControl;

    @NgFormControl({
        id: 'hdfzr_8dac49e3_wsoc',
        name: "{{hdfzr_8dac49e3_wsoc}}",
        binding: 'hdfzr',
        updateOn: 'blur',
        defaultI18nValue: '活动负责人',
        validRules: [
            {
                type: 'required',
                constraints: [true],
            },
            {
                type: 'matches',
                constraints: [''],
            }
        ]
    })
    hdfzr: FormControl;

}